// @ts-ignore
/* eslint-disable */
import { OpenApi as request } from "@/utils/request";

/** 上传文件 POST /platform/upload/file */
export async function file2(options?: { [key: string]: any }) {
  return request<API.BaseResponseUploadFilesVo>(
    `/barter-user/platform/upload/file`,
    {
      method: "POST",
      ...(options || {}),
    }
  );
}

/** 上传图片 POST /platform/upload/image */
export async function image1(options?: { [key: string]: any }) {
  return request<API.BaseResponseUploadFilesVo>(
    `/barter-user/platform/upload/image`,
    {
      method: "POST",
      ...(options || {}),
    }
  );
}

/** 上传视频 POST /platform/upload/video */
export async function video1(options?: { [key: string]: any }) {
  return request<API.BaseResponseUploadFilesVo>(
    `/barter-user/platform/upload/video`,
    {
      method: "POST",
      ...(options || {}),
    }
  );
}
